package com.xbongbong.pro.statistic.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author zhouwq
 * @date 2019/5/1 16:08
 */

@Getter
public enum ChartPermissionsTypeEnum {

    /**
     * 判断操作权限 可见/不可见
     */
    IS_ABLE(1,"enum.chartPermissionsType.describe.is_able"),

    NOT_IS_ABLE(0,"enum.chartPermissionsType.describe.not_is_able");

    /**
     * 是否可见
     */
    private final Integer type;
    /**
     * 字段描述
     */
    private final String describe;


    ChartPermissionsTypeEnum(Integer type, String describe){
        this.type = type;
        this.describe = describe;
    }

    public String getDescribe() {
        return I18nMessageUtil.getMessage(describe);
    }
}
